POST
/
cortex
/
sessions
curl --request POST \
  --url https://api.sophra.org/api/cortex/sessions \
  --header 'Content-Type: application/json' \
  --data '{
  "clientId": "client-123",
  "userId": "user-456",
  "metadata": {
    "deviceType": "mobile",
    "platform": "ios"
  }
}'
{
  "success": true,
  "data": {
    "sessionId": "<string>",
    "created": "2023-11-07T05:31:56Z",
    "metadata": {}
  }
}

Body

application/json

Response

201 - application/json

Session created successfully

The response is of type object.